<template>
  <div class="productionCockpit h100">
    <dividerTitle :title="componentTitle"></dividerTitle>
    <div class="main-box">
      <div class="item-box" v-for="(item,index) in CockpitBox" :key="index">
        <div class="item-box-left">
          <div class="img-item">
            <img :src="item.imgSrc">
          </div>
          <div class="text-item">
            <div class="item-label">{{item.label}}</div>
            <div class="item-desc">{{item.desc}}</div>
          </div>
        </div>
        <div class="item-box-right">
          <img :src='require("@/assets/img/productionCockpit/cockpit.png")'>
          <i class="iconfont icon-dianjijinru"></i>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['componentTitle'],
  data() {
    return {
     CockpitBox:[
       {
         label:'集团驾驶舱',
         desc:'该应用简要文字描述',
         imgSrc:require("@/assets/img/productionCockpit/groupCockpit.svg"),
       },{
         label:'公司驾驶舱',
         desc:'该应用简要文字描述',
         imgSrc:require("@/assets/img/productionCockpit/companyCockpit.svg"),
       },{
         label:'部门驾驶舱',
         desc:'该应用简要文字描述',
         imgSrc:require("@/assets/img/productionCockpit/deptCockpit.svg"),
       },{
         label:'部门驾驶舱',
         desc:'该应用简要文字描述',
         imgSrc:require("@/assets/img/productionCockpit/deptCockpit.svg"),
       }
     ],
    }
  },
  created() {
  },
  methods: {
    
  }
};
</script>

<style lang="less" scoped>
.productionCockpit{
  width: 100%;
  height: 100%;
  .main-box{
    height: calc(100% - 55px);
    overflow-y: auto;
  }
  .item-box{
      margin-bottom: 20px;
      margin-left: 20px;
      margin-top: 1px;
      width: calc(100% - 40px);
      //height: calc((100% - 61px) / 3);
      height: 89px;
      border-radius: 4px;
      box-shadow: 0px 0px 8px 0px rgba(204, 204, 204, 0.4);
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      cursor: pointer;
      .item-box-left{
        text-align: left;
        padding-left: 16px;
        padding-top: 16px;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        .text-item{
          padding-left: 12px;
        }
        .item-label{
          font-size: 16px;
          color: #333333;
        }
        .item-desc{
          font-size: 14px;
          color: #999999;
          padding-top: 12px;
        }
        img{
          height: 48px;
          width: 48px;
        }
      }
      .item-box-right{
        text-align: right;
        padding-top: 12px;
        padding-right: 12px;
        width: 100%;
        height: 100%;
        img{
          width: 84px;
          height: 76px;
        }
        i{
          vertical-align: bottom;
          padding-left: 12px;
          padding-bottom: 12px;
          color: #0D60B4;
          //font-size: 16px;
          font-weight: 600;
          cursor: pointer;
        }
      }
    }
  /deep/.el-card__body{
    padding: 12px;
  }
}
</style>